<%@page import="com.service.impl.NewServiceImpl"%>
<%@page import="com.entity.New"%>
<%@page import="java.util.List"%>
<%@page import="com.service.NewService"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新闻列表</title>
</head>
<body>
<h2>新闻列表</h2>

<%
String tid = request.getParameter("tid");
NewService newService = new NewServiceImpl();
List<New> news = newService.selectNewsByTid(Integer.parseInt(tid));


for(New temp : news){
	%>
	
	<p><a href="news_detail.jsp?nid=<%=temp.getNid() %>"><%=temp.getNtitle() %></a></p>
	
	<%	
}

%>

</body>
</html>